package com.ruoyi.system.outto.goods.impl;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.google.gson.JsonObject;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.exception.GlobalException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.UUIDGenerator;
import com.ruoyi.common.utils.http.HttpUtils;
import com.ruoyi.system.V2.gameAttr.mapper.GameAttributeMapper;
import com.ruoyi.system.V2.goodInfo.mapper.GoodsInfoImgMapper;
import com.ruoyi.system.V2.inter.mapper.ArtRecMapper;
import com.ruoyi.system.model.domain.*;
import com.ruoyi.system.model.dto.GoodsInfoAndAttrValueDto;
import com.ruoyi.system.model.mapper.InfoImgMapper;
import com.ruoyi.system.outto.core.LCConstant;
import com.ruoyi.system.outto.core.MapUntils;
import com.ruoyi.system.outto.core.OutUrlConstant;
import com.ruoyi.system.outto.core.RegionalCovert;
import com.ruoyi.system.outto.game.CommonApi;
import com.ruoyi.system.outto.goods.NEWIYQSAPI;
import com.sun.org.apache.bcel.internal.generic.NEW;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.codec.digest.Md5Crypt;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.*;
import java.util.stream.Collectors;

/**
 * @author lz
 * @version 1.0
 * @date 2022/6/5 16:19
 */
@Slf4j
@Service
public class NEWYQSAPIImpl implements NEWIYQSAPI {

    @Resource
    private InfoImgMapper infoImgMapper;
    @Value("${desc.title}")
    private String descTitle;
    private SalePartner salePartner;
    @Autowired
    private CommonApi commonApi;
    @Resource
    private GoodsInfoImgMapper goodsInfoImgMapper;
    @Resource
    private GameAttributeMapper gameAttributeMapper;
    @Resource
    private ArtRecMapper artRecMapper;

    private List<GameAttribute> getGameAttributs(String ids) {
        List<GameAttribute> list = new ArrayList<>();
        if (StringUtils.isNotEmpty(ids)) {
            list = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(ids.split(","),
                    Long.class));
        }
        return list;
    }

    @Override
    public AjaxResult addGame(GoodsInfoAndAttrValueDto goodsInfoAndAttrValueDto, SalePartner salePartner) {
        String path = "/api/sync/publish";
        this.salePartner = salePartner;
        Map<String, Object> result = new HashMap<>();
        Map<String, Object> params = params(goodsInfoAndAttrValueDto);
        log.info("妖气山添加接口请求参数={}", JSONObject.toJSONString(params));
        String twoOther = salePartner.getTwoOther();
        String response = HttpUtils.sendPost(twoOther+path, JSONObject.toJSONString(params), "application/json");
        log.info("妖气山添加接口返回参数={}", response);
        JSONObject resultJson = JSONObject.parseObject(response);
        if (!"200".equals(resultJson.getString("code"))) {
            result.put("code", 500);
        } else {
            result.put("code", 200);
            ArtRec artRecreq = new ArtRec();
            artRecreq.setConfig(salePartner.getId());
            artRecreq.setAccountId(goodsInfoAndAttrValueDto.getId());
            List<ArtRec> artRecs = artRecMapper.selectArtRecList(artRecreq);
            if(CollectionUtils.isNotEmpty(artRecs)) {
                artRecs.get(0).setOutid(resultJson.getString("data"));
                artRecMapper.updateArtRec(artRecs.get(0));
            }else{
                artRecreq.setAccountId(goodsInfoAndAttrValueDto.getId());
                artRecreq.setCreateId(goodsInfoAndAttrValueDto.getCreateId());
                artRecreq.setType(LCConstant.interAdd);
                artRecreq.setConfig(salePartner.getId());
                artRecreq.setSaleCode(salePartner.getSaleName());
                artRecreq.setOutid(resultJson.getString("data"));
                artRecMapper.insertArtRec(artRecreq);
            }
        }

        result.put("req", JSONObject.toJSONString(params));
        result.put("res", response);
        result.put("msg", resultJson.getString("data"));
        return AjaxResult.success(result);
    }

    @Override
    public AjaxResult editGame(GoodsInfoAndAttrValueDto goodsInfoAndAttrValueDto,SalePartner salePartner) {
        String path = "/api/sync/modify";
        this.salePartner = salePartner;
        Map<String, Object> result = new HashMap<>();
        Map<String, Object> params = params(goodsInfoAndAttrValueDto);
        log.info("妖气山编辑接口请求参数={}", JSONObject.toJSONString(params));
        String twoOther = salePartner.getTwoOther();
        String response = HttpUtils.sendPost(twoOther+path, JSONObject.toJSONString(params), "application/json");
        log.info("妖气山编辑接口返回参数={}", response);
        JSONObject resultJson = JSONObject.parseObject(response);

        if (!"200".equals(resultJson.getString("code"))) {
            result.put("code", 500);
        } else {
            result.put("code", 200);
        }


        result.put("req", JSONObject.toJSONString(params));
        result.put("res", response);
        result.put("msg", resultJson.getString("data"));
        return AjaxResult.success(result);
    }


    private Map<String, Object> params(GoodsInfoAndAttrValueDto goodsInfoAndAttrValueDto) {


        String cover = salePartner.getOther()+salePartner.getSaleKey()+(new Date().getTime() / 100)+goodsInfoAndAttrValueDto.getId();
        log.info("验签之前={}",cover);
        String sign = DigestUtils.md5Hex(cover);
        log.info("验签结束={}",sign);


        /*{
            "productId": 6,
                "productName": "原神"
        },*/

        Map<String, Object> params = new TreeMap<>();

        params.put("signKey",salePartner.getSaleKey());
        params.put("merchantId",salePartner.getOther());
        params.put("timeStamp",new Date().getTime() / 100);
        params.put("thirdId",goodsInfoAndAttrValueDto.getId());

        if (Objects.equals("原神",goodsInfoAndAttrValueDto.getGameName())){
            params.put("productId","6");
            if(goodsInfoAndAttrValueDto.getCarrierName().equals("游戏官方")){
                params.put("firstServerId", 25);
                params.put("secondServerId", 843);
            }else{
                params.put("firstServerId", 26);
                params.put("secondServerId", 844);
            }
        }else if(Objects.equals("王者荣耀",goodsInfoAndAttrValueDto.getGameName())){
            params.put("productId","3");
            if(goodsInfoAndAttrValueDto.getSystemName().equals("安卓")) {
                params.put("firstServerId", 7);
                if(goodsInfoAndAttrValueDto.getCarrierName().equals("QQ")) {
                    params.put("secondServerId", 797);
                }else {
                    params.put("secondServerId", 820);
                }
            }else{
                params.put("firstServerId", 8);
                if(goodsInfoAndAttrValueDto.getCarrierName().equals("QQ")) {
                    params.put("secondServerId", 798);
                }else {
                    params.put("secondServerId", 821);
                }
            }
        }else if(Objects.equals("穿越火线",goodsInfoAndAttrValueDto.getGameName())){
            params.put("productId","79");
            JSONObject jsonObject = JSONObject.parseObject(LCConstant.yqscfdaqu);
            String data = jsonObject.getString("data");
            JSONArray jsonArray = JSONArray.parseArray(data);
            for(Object o : jsonArray){
                String secondServers = JSONObject.parseObject(o.toString()).getString("secondServers");
                JSONArray jsonArray1 = JSONArray.parseArray(secondServers);
                for(Object p : jsonArray1){
                    if(goodsInfoAndAttrValueDto.getServerName().equals(JSONObject.parseObject(p.toString()).getString("secondServerName"))){
                        params.put("firstServerId", JSONObject.parseObject(o.toString()).getString("firstServerId"));
                        params.put("secondServerId", JSONObject.parseObject(p.toString()).getString("secondServerId"));
                    }
                }
            }
        }else if(Objects.equals("和平精英",goodsInfoAndAttrValueDto.getGameName())){
            params.put("productId","4");
            if(goodsInfoAndAttrValueDto.getSystemName().equals("安卓")) {
                params.put("firstServerId", 9);
                if(goodsInfoAndAttrValueDto.getCarrierName().equals("QQ")) {
                    params.put("secondServerId", 799);
                }else {
                    params.put("secondServerId", 1309);
                }
            }else{
                params.put("firstServerId", 10);
                if(goodsInfoAndAttrValueDto.getCarrierName().equals("QQ")) {
                    params.put("secondServerId", 800);
                }else {
                    params.put("secondServerId", 1295);
                }
            }
        }else if(Objects.equals("枪战王者",goodsInfoAndAttrValueDto.getGameName())){
            params.put("productId","7");
            if(goodsInfoAndAttrValueDto.getSystemName().equals("安卓")) {
                params.put("firstServerId", 14);
                if(goodsInfoAndAttrValueDto.getCarrierName().equals("QQ")) {
                    params.put("secondServerId", 1332);
                }else {
                    params.put("secondServerId", 1334);
                }
            }else{
                params.put("firstServerId", 15);
                if(goodsInfoAndAttrValueDto.getCarrierName().equals("QQ")) {
                    params.put("secondServerId", 1333);
                }else {
                    params.put("secondServerId", 1335);
                }
            }
        }else if(Objects.equals("火影忍者",goodsInfoAndAttrValueDto.getGameName())){
            params.put("productId","80");
            String regional = goodsInfoAndAttrValueDto.getSystemName()+goodsInfoAndAttrValueDto.getCarrierName();
            if(regional.equals("安卓QQ")){
                params.put("firstServerId","203");
            }else if(regional.equals("苹果QQ")){
                params.put("firstServerId","204");
            }else if(regional.equals("安卓微信")){
                params.put("firstServerId","205");
            }else{
                params.put("firstServerId","206");
            }
        } else {
            throw new GlobalException("暂不支持的游戏");
        }

        params.put("saleType","2");
        String des = goodsInfoAndAttrValueDto.getDes();
        if (des.length() > 250){
            des = des.substring(0,240);
        }
        params.put("goodsTitle", "【" + descTitle + goodsInfoAndAttrValueDto.getId() +"】"+des);
        params.put("goodsContent","【" + descTitle + goodsInfoAndAttrValueDto.getId() +"】" + goodsInfoAndAttrValueDto.getDes());

//        DecimalFormat format = new DecimalFormat("0.00");
//        String format1 = format.format(accountInfo.getPrice());

        BigDecimal bigDecimal = commonApi.addPrice(goodsInfoAndAttrValueDto.getPrice(), salePartner.getSeleep());
        commonApi.setPrice(bigDecimal,goodsInfoAndAttrValueDto.getId(),salePartner);
        params.put("salePrice",bigDecimal.stripTrailingZeros().toPlainString());
        params.put("account", UUIDGenerator.generate());
        params.put("pwd", UUIDGenerator.generate());
        params.put("emailAccount", UUIDGenerator.generate());
        params.put("emailPwd", UUIDGenerator.generate());

        params.put("emailUrl", null);
        params.put("emailUrl", null);
        params.put("safePhone", null);
        params.put("safePhone", null);

        GoodsInfoImg goodsInfoImg = new GoodsInfoImg();
        goodsInfoImg.setGoodsId(goodsInfoAndAttrValueDto.getId());
        goodsInfoImg.setType(Constants.STR_1);
        List<GoodsInfoImg> infoImgs = goodsInfoImgMapper.selectGoodsInfoImgList(goodsInfoImg);
        List<String> collect = infoImgs.stream().map(img -> img.getImgUrl()).collect(Collectors.toList());
        if(CollectionUtils.isNotEmpty(collect)) {
            params.put("images", collect);
        }else if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getTitleImg())){
            List<String> list = new ArrayList<>();
            list.add(goodsInfoAndAttrValueDto.getTitleImg());
            params.put("images", list);
        }else{
            List<String> list = new ArrayList<>();
            list.add(LCConstant.defaultImg);
            params.put("images", list);
        }

        List<Map<String,Object>>  attributes = new ArrayList<>();

        if(goodsInfoAndAttrValueDto.getGameName().equals("原神")) {
            String s = getAttr(6);
            JSONObject attr = JSONObject.parseObject(s);
            String data = attr.getString("data");
            JSONArray objects = JSONObject.parseArray(data);
            for (Object object : objects) {
                JSONObject jsonObject = JSONObject.parseObject(JSONObject.toJSONString(object));
                if (jsonObject.getString("id").equals("41") && StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF11())) {
                    List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF11());
                    //五星角色
                    String enumList = jsonObject.getString("enumList");
                    JSONArray enumListArr = JSONObject.parseArray(enumList);
                    for (GameAttribute gameAttribute1 : gameAttributeList) {
                        for (Object o : enumListArr) {
                            JSONObject jsonEnum = JSONObject.parseObject(JSONObject.toJSONString(o));
                            String enumValue = jsonEnum.getString("enumValue");
                            String enumId = jsonEnum.getString("id");
                            if (gameAttribute1.getFieldName().contains(enumValue)) {
                                Map<String, Object> attributesMap = new HashMap<>();
                                attributesMap.put("attrId", jsonObject.getString("id"));
                                attributesMap.put("extraEnumValue", gameAttribute1.getFieldName().replace("满","6").substring(0,1));
                                attributesMap.put("enumId", enumId);
                                attributesMap.put("enumValue", enumValue);
                                attributes.add(attributesMap);
                            }
                        }
                    }
                }
                if (jsonObject.getString("id").equals("42") && StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF17())) {
                    List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF17());
                    //五星角色
                    String enumList = jsonObject.getString("enumList");
                    JSONArray enumListArr = JSONObject.parseArray(enumList);
                    for (GameAttribute gameAttribute1 : gameAttributeList) {
                        for (Object o : enumListArr) {
                            JSONObject jsonEnum = JSONObject.parseObject(JSONObject.toJSONString(o));
                            String enumValue = jsonEnum.getString("enumValue");
                            String enumId = jsonEnum.getString("id");
                            if (gameAttribute1.getFieldName().contains(enumValue)) {
                                Map<String, Object> attributesMap = new HashMap<>();
                                attributesMap.put("attrId", jsonObject.getString("id"));
                                attributesMap.put("extraEnumValue", gameAttribute1.getFieldName().substring(1,2));
                                attributesMap.put("enumId", enumId);
                                attributesMap.put("enumValue", enumValue);
                                attributes.add(attributesMap);
                            }
                        }
                    }
                }
                if ("89".equals(jsonObject.getString("id"))) {
                    Map<String, Object> attributesMap = new HashMap<>();
                    attributesMap.put("attrId", "89");
                    attributesMap.put("enumId", "382");
                    attributesMap.put("enumValue", "自己注册");
                    attributes.add(attributesMap);
                }
                if ("66".equals(jsonObject.getString("id"))) {
                    if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF7())) {
                        Map<String, Object> attributesMap = new HashMap<>();
                        attributesMap.put("attrId", "66");
                        attributesMap.put("enumValue", goodsInfoAndAttrValueDto.getF7());
                    }
                }
                if ("61".equals(jsonObject.getString("id")) && StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF3())) {
                    GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF3()));
                    Map<String, Object> attributesMap = new HashMap<>();
                    String enumList = jsonObject.getString("enumList");
                    JSONArray enumListArr = JSONObject.parseArray(enumList);
                    for (Object o : enumListArr) {
                        JSONObject jsonEnum = JSONObject.parseObject(JSONObject.toJSONString(o));
                        String enumValue = jsonEnum.getString("enumValue");
                        String enumId = jsonEnum.getString("id");
                        if (gameAttribute1.getFieldName().equals(enumValue)) {
                            attributesMap.put("attrId", jsonObject.getString("id"));
                            attributesMap.put("enumId", enumId);
                            attributesMap.put("enumValue", enumValue);
                            attributes.add(attributesMap);
                        }
                    }
                }
                if ("129".equals(jsonObject.getString("id"))) {
                    Map<String, Object> attributesMap = new HashMap<>();
                    attributesMap.put("attrId", "129");
                    attributesMap.put("enumId", "956");
                    attributesMap.put("enumValue", "可以提供");
                    attributes.add(attributesMap);
                }
                if ("243".equals(jsonObject.getString("id"))) {
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF8())) {
                        Map<String, Object> attributesMap = new HashMap<>();
                        attributesMap.put("attrId", "243");
                        attributesMap.put("enumValue", goodsInfoAndAttrValueDto.getF8());
                        attributes.add(attributesMap);
                    }
                }
                if ("87".equals(jsonObject.getString("id"))) {
                    if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF2())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF2()));
                        Map<String, Object> attributesMap = new HashMap<>();
                        if (gameAttribute1.getFieldName().equals("未绑定邮箱")) {
                            attributesMap.put("attrId", "87");
                            attributesMap.put("enumId", "386");
                            attributesMap.put("enumValue", "未绑定邮箱");
                        } else {
                            attributesMap.put("attrId", "87");
                            attributesMap.put("enumId", "371");
                            attributesMap.put("enumValue", "网易实名邮箱");
                        }
                        attributes.add(attributesMap);
                    }
                }
            }
        }
        if(goodsInfoAndAttrValueDto.getGameName().equals("王者荣耀")){
            String response = getAttr(3);
            String data = JSONObject.parseObject(response).getString("data");
            JSONArray jsonArray = JSONArray.parseArray(data);
            for(Object o : jsonArray){
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("荣耀典藏")){
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF9())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF9());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList) {
                            for (Object p : jsonArray1) {
                                if(gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("星传说")){
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF10())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF10());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList) {
                            for (Object p : jsonArray1) {
                                if(gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("英雄数量")){
                    Map<String, Object> attributesMap = new HashMap<>();
                    attributesMap.put("attrId", "30");
                    attributesMap.put("enumValue", goodsInfoAndAttrValueDto.getF7());
                    attributes.add(attributesMap);
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("皮肤数量")){
                    Map<String, Object> attributesMap = new HashMap<>();
                    attributesMap.put("attrId", "31");
                    attributesMap.put("enumValue", goodsInfoAndAttrValueDto.getF8());
                    attributes.add(attributesMap);
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("营地ID")){
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF17())) {
                        Map<String, Object> attributesMap = new HashMap<>();
                        attributesMap.put("attrId", "37");
                        attributesMap.put("enumValue", goodsInfoAndAttrValueDto.getF17());
                        attributes.add(attributesMap);
                    }
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("贵族等级")){
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF2())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF2()));
                        Map<String, Object> attributesMap = new HashMap<>();
                        attributesMap.put("attrId", "272");
                        attributesMap.put("enumValue", gameAttribute1.getFieldName());
                        attributes.add(attributesMap);
                    }
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("传说皮肤")){
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF12())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF12());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList) {
                            for (Object p : jsonArray1) {
                                if(gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("是否防沉迷")){
                    Map<String, Object> attributesMap = new HashMap<>();
                    attributesMap.put("attrId", 34);
                    attributesMap.put("enumId", 150);
                    attributesMap.put("enumValue", "否");
                    attributes.add(attributesMap);
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("有无二次实名")){
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF16())){
                        Map<String, Object> attributesMap = new HashMap<>();
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF16()));
                        if(gameAttribute1.getFieldName().equals("可二次实名")){
                            attributesMap.put("attrId", 35);
                            attributesMap.put("enumId", 151);
                            attributesMap.put("enumValue", "有二次实名");
                            attributes.add(attributesMap);
                        }else{
                            attributesMap.put("attrId", 35);
                            attributesMap.put("enumId", 152);
                            attributesMap.put("enumValue", "无二次实名");
                            attributes.add(attributesMap);
                        }
                    }
                }
            }
        }
        if(goodsInfoAndAttrValueDto.getGameName().equals("穿越火线")){
            String response = getAttr(79);
            String data = JSONObject.parseObject(response).getString("data");
            JSONArray jsonArray = JSONArray.parseArray(data);
            for(Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("实名情况")) {
                    if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF3())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF3()));
                        if(gameAttribute1.getFieldName().contains("有修改机会")){
                            Map<String, Object> attributesMap = new HashMap<>();
                            attributesMap.put("attrId", 299);
                            attributesMap.put("enumId", 2576);
                            attributesMap.put("enumValue", "可二次实名");
                            attributes.add(attributesMap);
                        }else{
                            Map<String, Object> attributesMap = new HashMap<>();
                            attributesMap.put("attrId", 299);
                            attributesMap.put("enumId", 2577);
                            attributesMap.put("enumValue", "不可二次实名");
                            attributes.add(attributesMap);
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("是否可排位")) {
                    Map<String, Object> attributesMap = new HashMap<>();
                    attributesMap.put("attrId", 298);
                    attributesMap.put("enumId", 2574);
                    attributesMap.put("enumValue", "可排位");
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("段位")) {
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF6())){
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF6()));
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(Object p : jsonArray1){
                            if(gameAttribute1.getFieldName().replace("未定级","无").equals(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                Map<String, Object> attributesMap = new HashMap<>();
                                attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                            }
                        }
                    }else{
                        Map<String, Object> attributesMap = new HashMap<>();
                        attributesMap.put("attrId", 294);
                        attributesMap.put("enumId", 2417);
                        attributesMap.put("enumValue", "无");
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("角色")) {
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF19())){
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF19());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            for(Object p : jsonArray1){
                                if(gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("英雄级武器")) {
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF13())){
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF13());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            for(Object p : jsonArray1){
                                if(gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("王者炫金武器")) {
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF14())){
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF14());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            for(Object p : jsonArray1){
                                if(gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
            }
        }
        if(goodsInfoAndAttrValueDto.getGameName().equals("和平精英")){
            String response = getAttr(4);
            String data = JSONObject.parseObject(response).getString("data");
            JSONArray jsonArray = JSONArray.parseArray(data);
            for(Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("实名情况")) {
                    if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF10())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF10()));
                        if (gameAttribute1.getFieldName().equals("可二次实名")) {
                            Map<String, Object> attributesMap = new HashMap<>();
                            attributesMap.put("attrId", 281);
                            attributesMap.put("enumId", 2200);
                            attributesMap.put("enumValue", "可二次实名");
                            attributes.add(attributesMap);
                        }else{
                            Map<String, Object> attributesMap = new HashMap<>();
                            attributesMap.put("attrId", 281);
                            attributesMap.put("enumId", 2201);
                            attributesMap.put("enumValue", "无二次实名");
                            attributes.add(attributesMap);
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("有无防沉迷")) {
                    Map<String, Object> attributesMap = new HashMap<>();
                    attributesMap.put("attrId", 282);
                    attributesMap.put("enumId", 2202);
                    attributesMap.put("enumValue", "无防沉迷");
                    attributes.add(attributesMap);
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("稀有载具")){
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF2())){
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF2());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            String fieldName = gameAttribute1.getFieldName();
                            if(fieldName.equals("特斯拉3银色")){
                                fieldName = "特斯拉Model 3（银)";
                            }else if(fieldName.equals("特斯拉3白色")){
                                fieldName = "特斯拉Model 3（白)";
                            }else if(fieldName.equals("特斯拉3紫色")){
                                fieldName = "特斯拉Model 3（紫)";
                            }else if(fieldName.equals("合金龙骨红色")){
                                fieldName = "合金龙骨（红）";
                            }else if(fieldName.equals("合金龙骨蓝色")){
                                fieldName = "合金龙骨（蓝）";
                            }else if(fieldName.equals("合金龙骨绿色")){
                                fieldName = "合金龙骨（绿）";
                            }else if(fieldName.equals("阿斯顿马丁S红色")){
                                fieldName = "阿斯顿-马丁DBS（红）";
                            }else if(fieldName.equals("阿斯顿马丁S金色")){
                                fieldName = "阿斯顿-马丁DBS（红）";
                            }else if(fieldName.equals("阿斯顿马丁S绿色")){
                                fieldName = "阿斯顿-马丁DBS（绿）";
                            }else if(fieldName.equals("阿斯顿马丁X橙色")){
                                fieldName = "阿斯顿-马丁DBX（橙）";
                            }else if(fieldName.equals("阿斯顿马丁X金色")){
                                fieldName = "阿斯顿-马丁DBX（金）";
                            }else if(fieldName.equals("阿斯顿马丁X蓝色")){
                                fieldName = "阿斯顿-马丁DBX（蓝）";
                            }else if(fieldName.equals("兰博SVJ绿色")){
                                fieldName = "兰博基尼Aventador SVJ (翡翠绿)";
                            }else if(fieldName.equals("兰博轿车金色")){
                                fieldName = "兰博基尼Estoque (炫光金)";
                            }else if(fieldName.equals("兰博SVJ尊享铂")){
                                fieldName = "兰博基尼Aventador SVJ (尊享铂)";
                            }else if(fieldName.equals("兰博轿车灰色")){
                                fieldName = "兰博基尼Estoque (银翼灰)";
                            }else if(fieldName.equals("兰博轿车尊享铂")){
                                fieldName = "兰博基尼Estoque (尊享铂)";
                            }else if(fieldName.equals("兰博SUV黄色")){
                                fieldName = "兰博基尼URUS (明艳黄)";
                            }else if(fieldName.equals("兰博SUV金色")){
                                fieldName = "兰博基尼URUS(炫光金)";
                            }else if(fieldName.equals("兰博SUV尊享铂")){
                                fieldName = "兰博基尼URUS (尊享铂)";
                            }else if(fieldName.equals("路特斯EL蓝色")){
                                fieldName = "路特斯ELETRE(冰川蓝)";
                            }else if(fieldName.equals("路特斯EL紫色")){
                                fieldName = "路特斯ELETRE(电光紫)";
                            }else if(fieldName.equals("路特斯EL灰色")){
                                fieldName = "路特斯ELETRE(花绽灰)";
                            }else if(fieldName.equals("路特斯EV紫色")){
                                fieldName = "路特斯EVIJA(电光紫)";
                            }else if(fieldName.equals("路特斯EV黄色")){
                                fieldName = "路特斯EVIJA (星际黄)";
                            }else if(fieldName.equals("玛莎拉蒂粉色")){
                                fieldName = "玛莎拉蒂Ghibli (粉)";
                            }else if(fieldName.equals("玛莎拉蒂金色")){
                                fieldName = "玛莎拉蒂Ghibli (金)";
                            }else if(fieldName.equals("玛莎拉蒂蓝色")){
                                fieldName = "玛莎拉蒂Ghibli (蓝)";
                            }else if(fieldName.equals("玛莎拉蒂G绿色")){
                                fieldName = "玛莎拉蒂Grecale (薄荷绿)";
                            }else if(fieldName.equals("玛莎拉蒂Grecale(幻星粉)")){
                                fieldName = "玛莎拉蒂Grecale (幻星粉)";
                            }else if(fieldName.equals("玛莎拉蒂M白色")){
                                fieldName = "玛莎拉蒂MC20(星石白)";
                            }else if(fieldName.equals("玛莎拉蒂Quattroporte(幻星粉)")){
                                fieldName = "玛莎拉蒂Quattroporte (幻星粉)";
                            }else if(fieldName.equals("玛莎拉蒂Q蓝色")){
                                fieldName = "玛莎拉蒂Quattroporte (夜蓝)";
                            }else if(fieldName.equals("特斯拉C荒芜蓝")){
                                fieldName = "特斯拉Cybertruck(荒芜蓝)";
                            }else if(fieldName.equals("特斯拉C极昼黑")){
                                fieldName = "特斯拉Cybertruck (极尽黑)";
                            }else if(fieldName.equals("特斯拉C镭光铂")){
                                fieldName = "特斯拉Cybertruck (语光铂)";
                            }else if(fieldName.equals("特斯拉X银色")){
                                fieldName = "特斯拉ModelX (银)";
                            }else if(fieldName.equals("特斯拉X紫色")){
                                fieldName = "特斯拉ModelX (紫)";
                            }else if(fieldName.equals("特斯拉X白色")){
                                fieldName = "特斯拉ModelX (白)";
                            }else if(fieldName.equals("特斯拉R沁心粉")){
                                fieldName = "特斯拉Roadster (沁心粉)";
                            }else if(fieldName.equals("特斯拉R水滴蓝")){
                                fieldName = "特斯拉Roadster(水滴蓝)";
                            }else if(fieldName.equals("特斯拉R尊享铂")){
                                fieldName = "特斯拉Roadster (尊享铂)";
                            }else if(fieldName.equals("金龙耀世")){
                                fieldName = "金龙曜世";
                            }else if(fieldName.equals("空客恋语之翼僚机")){
                                fieldName = "空客H135恋语之翼";
                            }else if(fieldName.equals("空客蔚蓝之翼僚机")){
                                fieldName = "空客H135蔚蓝之翼";
                            }else if(fieldName.equals("塞莎鲸之蓝")){
                                fieldName = "快艇塞莎KL27(鲸之蓝)";
                            }else if(fieldName.equals("塞莎深潜蓝")){
                                fieldName = "快艇塞莎KL27 (深潜蓝)";
                            }else if(fieldName.equals("塞莎霓虹粉")){
                                fieldName = "快艇塞莎KL27 (霓虹粉)";
                            }else if(fieldName.equals("自由的鲸")){
                                fieldName = "快艇自由的鲸";
                            }else if(fieldName.equals("南瓜骑士")){
                                fieldName = "南瓜骑士车";
                            }else if(fieldName.equals("双刃魅影红色")){
                                fieldName = "双人摩托双刃魅影(红)";
                            }else if(fieldName.equals("双刃魅影金色")){
                                fieldName = "双人摩托双刃魅影(金)";
                            }else if(fieldName.equals("双刃魅影绿色")){
                                fieldName = "双人摩托双刃魅影(绿)";
                            }else if(fieldName.equals("双刃魅影绿色")){
                                fieldName = "双人摩托双刃魅影(绿)";
                            }
                            for(Object p : jsonArray1){
                                if(fieldName.contains(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("热门套装")){
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF5())){
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF5());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            String fieldName = gameAttribute1.getFieldName();
                            for(Object p : jsonArray1){
                                if(JSONObject.parseObject(p.toString()).getString("enumValue").contains(fieldName)){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if(JSONObject.parseObject(o.toString()).getString("attrName").equals("热门枪械")){
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF1())){
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF1());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            String fieldName = gameAttribute1.getFieldName();
                            if(fieldName.contains("Mini")){
                                fieldName = fieldName.replace("14","");
                            }else if(fieldName.equals("M416-火箭少女101")){
                                fieldName = "M416-火箭少女101枪";
                            }
                            for(Object p : jsonArray1){
                                String enumValue = JSONObject.parseObject(p.toString()).getString("enumValue").replace("-","");
                                if(enumValue.equals(fieldName.replace("-",""))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
            }
        }
        if(goodsInfoAndAttrValueDto.getGameName().equals("枪战王者")){
            String response = getAttr(7);
            String data = JSONObject.parseObject(response).getString("data");
            JSONArray jsonArray = JSONArray.parseArray(data);
            for(Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("实名情况")) {
                    if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF10())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF10()));
                        if (gameAttribute1.getFieldName().contains("可修改实名")) {
                            Map<String, Object> attributesMap = new HashMap<>();
                            attributesMap.put("attrId", 283);
                            attributesMap.put("enumId", 2204);
                            attributesMap.put("enumValue", "可二次实名");
                            attributes.add(attributesMap);
                        } else {
                            Map<String, Object> attributesMap = new HashMap<>();
                            attributesMap.put("attrId", 283);
                            attributesMap.put("enumId", 2205);
                            attributesMap.put("enumValue", "无二次实名");
                            attributes.add(attributesMap);
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("角色")) {
                    if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF8())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF8());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            String fieldName = gameAttribute1.getFieldName();
                            for(Object p : jsonArray1){
                                if(JSONObject.parseObject(p.toString()).getString("enumValue").contains(fieldName)){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("热门皮肤")) {
                    if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF7())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF7());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            String fieldName = gameAttribute1.getFieldName();
                            for(Object p : jsonArray1){
                                if(fieldName.contains(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("王者武器")) {
                    if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF15())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF15());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            String fieldName = gameAttribute1.getFieldName();
                            for(Object p : jsonArray1){
                                if(fieldName.contains(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("至尊套")) {
                    if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF12())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF12());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            String fieldName = gameAttribute1.getFieldName();
                            for(Object p : jsonArray1){
                                if(fieldName.contains(JSONObject.parseObject(p.toString()).getString("enumValue"))){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
            }
        }
        if(goodsInfoAndAttrValueDto.getGameName().equals("火影忍者")){
            String response = getAttr(80);
            String data = JSONObject.parseObject(response).getString("data");
            JSONArray jsonArray = JSONArray.parseArray(data);
            for(Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("S级忍者")) {
                    if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF5())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfoAndAttrValueDto.getF5());
                        String enumList = JSONObject.parseObject(o.toString()).getString("enumList");
                        JSONArray jsonArray1 = JSONArray.parseArray(enumList);
                        for(GameAttribute gameAttribute1 : gameAttributeList){
                            String fieldName = gameAttribute1.getFieldName();
                            if(fieldName.equals("仙人自来也")){
                                fieldName = "仙人模式自来也";
                            }else if(fieldName.equals("豪杰自来也")){
                                fieldName = "舞之豪杰自来也";
                            }else if(fieldName.equals("秽土水门")){
                                fieldName = "秽土转生波风水门";
                            }else if(fieldName.equals("秽土猿飞")){
                                fieldName = "秽土转生猿飞日斩";
                            }else if(fieldName.equals("秽土扉间")){
                                fieldName = "秽土转生千手扉间";
                            }else if(fieldName.equals("秽土柱间")){
                                fieldName = "秽土转生千手柱间";
                            }else if(fieldName.equals("秽土斑")){
                                fieldName = "秽土转生宇智波斑";
                            }else if(fieldName.equals("白面具")){
                                fieldName = "白面具宇智波斑";
                            }else if(fieldName.equals("木叶创立斑")){
                                fieldName = "木叶创立宇智波斑";
                            }else if(fieldName.equals("须佐鼬")){
                                fieldName = "须佐能乎宇智波鼬";
                            }else if(fieldName.equals("秽土鼬")){
                                fieldName = "秽土转生宇智波鼬";
                            }else if(fieldName.equals("面具男")){
                                fieldName = "神秘面具男";
                            }else if(fieldName.equals("忍战带土")){
                                fieldName = "忍界大战宇智波带土";
                            }else if(fieldName.equals("罗砂")){
                                fieldName = "四代目风影罗砂";
                            }else if(fieldName.equals("秽土三代风影")){
                                fieldName = "秽土转生三代目风影";
                            }else if(fieldName.equals("鬼灯幻月")){
                                fieldName = "二代目水影鬼灯幻月";
                            }else if(fieldName.equals("四代艾")){
                                fieldName = "四代目雷影艾";
                            }else if(fieldName.equals("三代艾")){
                                fieldName = "三代目雷影艾";
                            }else if(fieldName.equals("金角银角")){
                                fieldName = "秽土转生金角银角";
                            }else if(fieldName.equals("秽土半藏")){
                                fieldName = "秽土转生半藏";
                            }else if(fieldName.equals("二代土影无")){
                                fieldName = "二代目土影无";
                            }else if(fieldName.equals("佩恩")){
                                fieldName = "天道佩恩";
                            }else if(fieldName.equals("佩恩超")){
                                fieldName = "超佩恩天道";
                            }else if(fieldName.equals("仙人兜")){
                                fieldName = "仙人模式药师兜";
                            }else if(fieldName.equals("死门凯")){
                                fieldName = "死门迈特凯";
                            }else if(fieldName.equals("忍战大野木")){
                                fieldName = "忍界大战大野木";
                            }
                            for(Object p : jsonArray1){
                                if(JSONObject.parseObject(p.toString()).getString("enumValue").equals(fieldName)){
                                    Map<String, Object> attributesMap = new HashMap<>();
                                    attributesMap.put("attrId", JSONObject.parseObject(o.toString()).getString("id"));
                                    attributesMap.put("enumId", JSONObject.parseObject(p.toString()).getString("id"));
                                    attributesMap.put("enumValue", JSONObject.parseObject(p.toString()).getString("enumValue"));
                                    attributes.add(attributesMap);
                                }
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("是否防沉迷")) {
                    Map<String, Object> attributesMap = new HashMap<>();
                    attributesMap.put("attrId", 384);
                    attributesMap.put("enumId", 4892);
                    attributesMap.put("enumValue", "否");
                    attributes.add(attributesMap);
                }
                if (JSONObject.parseObject(o.toString()).getString("attrName").equals("有无二次实名")) {
                    if(StringUtils.isNotEmpty(goodsInfoAndAttrValueDto.getF7())){
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDto.getF7()));
                        if(gameAttribute1.getFieldName().contains("可改二次")){
                            Map<String, Object> attributesMap = new HashMap<>();
                            attributesMap.put("attrId", 383);
                            attributesMap.put("enumId", 4893);
                            attributesMap.put("enumValue", "有");
                            attributes.add(attributesMap);
                        }else{
                            Map<String, Object> attributesMap = new HashMap<>();
                            attributesMap.put("attrId", 383);
                            attributesMap.put("enumId", 4894);
                            attributesMap.put("enumValue", "无");
                            attributes.add(attributesMap);
                        }
                    }
                }
            }
        }
        params.put("attributes", attributes);

        params.put("sign", sign);
        return params;
    }


    @Override
    public AjaxResult delGame(GoodsInfoAndAttrValueDto goodsInfoAndAttrValueDto,SalePartner sa) {

        String cover = sa.getOther()+sa.getSaleKey()+(new Date().getTime() / 100)+goodsInfoAndAttrValueDto.getId();
        String sign = DigestUtils.md5Hex(cover);

        Map<String, Object> params = new TreeMap<>();
        params.put("merchantId", sa.getOther());
        params.put("timeStamp", new Date().getTime() / 100);
        params.put("sign", sign);
        params.put("thirdId", goodsInfoAndAttrValueDto.getId());
        String path = "/api/sync/offline";
        params.put("sign", sign);
        log.info("妖气山删除接口请求参数={}", JSONObject.toJSONString(params));
        String twoOther = sa.getTwoOther();
        String response = HttpUtils.sendPost(twoOther+path, JSONObject.toJSONString(params), "application/json");
        if (StringUtils.isEmpty(response)) {
            throw new GlobalException("请求接口失败");
        }
        log.info("妖气山删除接口返回参数={}", JSONObject.toJSONString(response));
        JSONObject resultJson = JSONObject.parseObject(response);
        Map<String, Object> result = new HashMap<>();

        if (!"200".equals(resultJson.getString("code"))) {
            result.put("code", 500);
        } else {
            result.put("code", 200);
            ArtRec artRecreq = new ArtRec();
            artRecreq.setConfig(sa.getId());
            artRecreq.setAccountId(goodsInfoAndAttrValueDto.getId());
            List<ArtRec> artRecs = artRecMapper.selectArtRecList(artRecreq);
            if(CollectionUtils.isNotEmpty(artRecs)) {
                artRecMapper.deleteArtRecById(artRecs.get(0).getId());
            }
        }

        result.put("req", JSONObject.toJSONString(params));
        result.put("res", response);
        result.put("msg", resultJson.getString("data"));
        return AjaxResult.success(result);
    }


    private JSONObject getAttr(){
        String atr = "{\n" +
                "\t\"code\": 200,\n" +
                "\t\"message\": \"success\",\n" +
                "\t\"data\": [\n" +
                "\t\t{\n" +
                "\t\t\t\"id\": 41,\n" +
                "\t\t\t\"productId\": 6,\n" +
                "\t\t\t\"attrName\": \"五星角色\",\n" +
                "\t\t\t\"showSort\": 10,\n" +
                "\t\t\t\"showType\": 3,\n" +
                "\t\t\t\"isRequired\": 1,\n" +
                "\t\t\t\"enumList\": [\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 1801,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 1801,\n" +
                "\t\t\t\t\t\"enumValue\": \"无五星角色\",\n" +
                "\t\t\t\t\t\"showSort\": 1,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 231,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 231,\n" +
                "\t\t\t\t\t\"enumValue\": \"达达利亚\",\n" +
                "\t\t\t\t\t\"showSort\": 2,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 230,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 230,\n" +
                "\t\t\t\t\t\"enumValue\": \"迪卢克\",\n" +
                "\t\t\t\t\t\"showSort\": 2,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 284,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 284,\n" +
                "\t\t\t\t\t\"enumValue\": \"莫娜\",\n" +
                "\t\t\t\t\t\"showSort\": 3,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 285,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 285,\n" +
                "\t\t\t\t\t\"enumValue\": \"刻晴\",\n" +
                "\t\t\t\t\t\"showSort\": 4,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 286,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 286,\n" +
                "\t\t\t\t\t\"enumValue\": \"可莉\",\n" +
                "\t\t\t\t\t\"showSort\": 5,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 287,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 287,\n" +
                "\t\t\t\t\t\"enumValue\": \"七七\",\n" +
                "\t\t\t\t\t\"showSort\": 6,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 288,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 288,\n" +
                "\t\t\t\t\t\"enumValue\": \"阿贝多\",\n" +
                "\t\t\t\t\t\"showSort\": 7,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 289,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 289,\n" +
                "\t\t\t\t\t\"enumValue\": \"钟离\",\n" +
                "\t\t\t\t\t\"showSort\": 8,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 290,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 290,\n" +
                "\t\t\t\t\t\"enumValue\": \"甘雨\",\n" +
                "\t\t\t\t\t\"showSort\": 9,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 291,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 291,\n" +
                "\t\t\t\t\t\"enumValue\": \"魈\",\n" +
                "\t\t\t\t\t\"showSort\": 10,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 292,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 292,\n" +
                "\t\t\t\t\t\"enumValue\": \"胡桃\",\n" +
                "\t\t\t\t\t\"showSort\": 11,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 293,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 293,\n" +
                "\t\t\t\t\t\"enumValue\": \"优菈\",\n" +
                "\t\t\t\t\t\"showSort\": 12,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 294,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 294,\n" +
                "\t\t\t\t\t\"enumValue\": \"枫原万叶\",\n" +
                "\t\t\t\t\t\"showSort\": 13,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 295,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 295,\n" +
                "\t\t\t\t\t\"enumValue\": \"神里绫华\",\n" +
                "\t\t\t\t\t\"showSort\": 14,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 296,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 296,\n" +
                "\t\t\t\t\t\"enumValue\": \"宵宫\",\n" +
                "\t\t\t\t\t\"showSort\": 15,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 297,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 297,\n" +
                "\t\t\t\t\t\"enumValue\": \"雷电将军\",\n" +
                "\t\t\t\t\t\"showSort\": 16,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 298,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 298,\n" +
                "\t\t\t\t\t\"enumValue\": \"珊瑚宫心海\",\n" +
                "\t\t\t\t\t\"showSort\": 17,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 299,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 299,\n" +
                "\t\t\t\t\t\"enumValue\": \"温迪\",\n" +
                "\t\t\t\t\t\"showSort\": 18,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 300,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 300,\n" +
                "\t\t\t\t\t\"enumValue\": \"琴\",\n" +
                "\t\t\t\t\t\"showSort\": 19,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 357,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 357,\n" +
                "\t\t\t\t\t\"enumValue\": \"荒泷一斗\",\n" +
                "\t\t\t\t\t\"showSort\": 20,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 360,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 360,\n" +
                "\t\t\t\t\t\"enumValue\": \"申鹤\",\n" +
                "\t\t\t\t\t\"showSort\": 21,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 376,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 376,\n" +
                "\t\t\t\t\t\"enumValue\": \"八重神子\",\n" +
                "\t\t\t\t\t\"showSort\": 22,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 395,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 395,\n" +
                "\t\t\t\t\t\"enumValue\": \"神里绫人\",\n" +
                "\t\t\t\t\t\"showSort\": 23,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 489,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 489,\n" +
                "\t\t\t\t\t\"enumValue\": \"夜兰\",\n" +
                "\t\t\t\t\t\"showSort\": 24,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 1802,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 1802,\n" +
                "\t\t\t\t\t\"enumValue\": \"提纳里\",\n" +
                "\t\t\t\t\t\"showSort\": 26,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 1804,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 1804,\n" +
                "\t\t\t\t\t\"enumValue\": \"赛诺\",\n" +
                "\t\t\t\t\t\"showSort\": 27,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 1806,\n" +
                "\t\t\t\t\t\"attrId\": 41,\n" +
                "\t\t\t\t\t\"enumId\": 1806,\n" +
                "\t\t\t\t\t\"enumValue\": \"妮露\",\n" +
                "\t\t\t\t\t\"showSort\": 28,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t}\n" +
                "\t\t\t]\n" +
                "\t\t},\n" +
                "\t\t{\n" +
                "\t\t\t\"id\": 42,\n" +
                "\t\t\t\"productId\": 6,\n" +
                "\t\t\t\"attrName\": \"五星武器\",\n" +
                "\t\t\t\"showSort\": 20,\n" +
                "\t\t\t\"showType\": 3,\n" +
                "\t\t\t\"isRequired\": 1,\n" +
                "\t\t\t\"enumList\": [\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 388,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 388,\n" +
                "\t\t\t\t\t\"enumValue\": \"无五星武器\",\n" +
                "\t\t\t\t\t\"showSort\": 0,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 237,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 237,\n" +
                "\t\t\t\t\t\"enumValue\": \"狼的末路\",\n" +
                "\t\t\t\t\t\"showSort\": 1,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 236,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 236,\n" +
                "\t\t\t\t\t\"enumValue\": \"四风原典\",\n" +
                "\t\t\t\t\t\"showSort\": 1,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 238,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 238,\n" +
                "\t\t\t\t\t\"enumValue\": \"天空之卷\",\n" +
                "\t\t\t\t\t\"showSort\": 2,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 239,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 239,\n" +
                "\t\t\t\t\t\"enumValue\": \"斫峰之刃\",\n" +
                "\t\t\t\t\t\"showSort\": 3,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 240,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 240,\n" +
                "\t\t\t\t\t\"enumValue\": \"阿莫斯之弓\",\n" +
                "\t\t\t\t\t\"showSort\": 4,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 241,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 241,\n" +
                "\t\t\t\t\t\"enumValue\": \"苍古自由之誓\",\n" +
                "\t\t\t\t\t\"showSort\": 5,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 242,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 242,\n" +
                "\t\t\t\t\t\"enumValue\": \"不灭月华\",\n" +
                "\t\t\t\t\t\"showSort\": 6,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 243,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 243,\n" +
                "\t\t\t\t\t\"enumValue\": \"薙草之稻光\",\n" +
                "\t\t\t\t\t\"showSort\": 7,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 244,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 244,\n" +
                "\t\t\t\t\t\"enumValue\": \"雾切之回光\",\n" +
                "\t\t\t\t\t\"showSort\": 8,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 245,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 245,\n" +
                "\t\t\t\t\t\"enumValue\": \"飞雷之弦振\",\n" +
                "\t\t\t\t\t\"showSort\": 9,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 246,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 246,\n" +
                "\t\t\t\t\t\"enumValue\": \"松籁响起之时\",\n" +
                "\t\t\t\t\t\"showSort\": 10,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 247,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 247,\n" +
                "\t\t\t\t\t\"enumValue\": \"终末嗟叹之诗\",\n" +
                "\t\t\t\t\t\"showSort\": 11,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 248,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 248,\n" +
                "\t\t\t\t\t\"enumValue\": \"尘世之锁\",\n" +
                "\t\t\t\t\t\"showSort\": 12,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 249,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 249,\n" +
                "\t\t\t\t\t\"enumValue\": \"贯虹之槊\",\n" +
                "\t\t\t\t\t\"showSort\": 13,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 250,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 250,\n" +
                "\t\t\t\t\t\"enumValue\": \"天空之脊\",\n" +
                "\t\t\t\t\t\"showSort\": 14,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 251,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 251,\n" +
                "\t\t\t\t\t\"enumValue\": \"风鹰剑\",\n" +
                "\t\t\t\t\t\"showSort\": 15,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 252,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 252,\n" +
                "\t\t\t\t\t\"enumValue\": \"磐岩结绿\",\n" +
                "\t\t\t\t\t\"showSort\": 16,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 253,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 253,\n" +
                "\t\t\t\t\t\"enumValue\": \"天空之刃\",\n" +
                "\t\t\t\t\t\"showSort\": 17,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 254,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 254,\n" +
                "\t\t\t\t\t\"enumValue\": \"天空之翼\",\n" +
                "\t\t\t\t\t\"showSort\": 18,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 255,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 255,\n" +
                "\t\t\t\t\t\"enumValue\": \"护摩之杖\",\n" +
                "\t\t\t\t\t\"showSort\": 19,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 256,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 256,\n" +
                "\t\t\t\t\t\"enumValue\": \"和璞鸢\",\n" +
                "\t\t\t\t\t\"showSort\": 20,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 257,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 257,\n" +
                "\t\t\t\t\t\"enumValue\": \"无工之剑\",\n" +
                "\t\t\t\t\t\"showSort\": 21,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 258,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 258,\n" +
                "\t\t\t\t\t\"enumValue\": \"天空之傲\",\n" +
                "\t\t\t\t\t\"showSort\": 22,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 327,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 327,\n" +
                "\t\t\t\t\t\"enumValue\": \"冬极白星\",\n" +
                "\t\t\t\t\t\"showSort\": 46,\n" +
                "\t\t\t\t\t\"isHot\": 1\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 358,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 358,\n" +
                "\t\t\t\t\t\"enumValue\": \"赤角石溃杵\",\n" +
                "\t\t\t\t\t\"showSort\": 47,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 359,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 359,\n" +
                "\t\t\t\t\t\"enumValue\": \"息灾\",\n" +
                "\t\t\t\t\t\"showSort\": 48,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 375,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 375,\n" +
                "\t\t\t\t\t\"enumValue\": \"神乐之真意\",\n" +
                "\t\t\t\t\t\"showSort\": 49,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 396,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 396,\n" +
                "\t\t\t\t\t\"enumValue\": \"波乱月白经津\",\n" +
                "\t\t\t\t\t\"showSort\": 50,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 490,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 490,\n" +
                "\t\t\t\t\t\"enumValue\": \"若水\",\n" +
                "\t\t\t\t\t\"showSort\": 51,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 1803,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 1803,\n" +
                "\t\t\t\t\t\"enumValue\": \"猎人之径\",\n" +
                "\t\t\t\t\t\"showSort\": 52,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 1805,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 1805,\n" +
                "\t\t\t\t\t\"enumValue\": \"赤沙之杖\",\n" +
                "\t\t\t\t\t\"showSort\": 53,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 1807,\n" +
                "\t\t\t\t\t\"attrId\": 42,\n" +
                "\t\t\t\t\t\"enumId\": 1807,\n" +
                "\t\t\t\t\t\"enumValue\": \"圣显之钥\",\n" +
                "\t\t\t\t\t\"showSort\": 54,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t}\n" +
                "\t\t\t]\n" +
                "\t\t},\n" +
                "\t\t{\n" +
                "\t\t\t\"id\": 89,\n" +
                "\t\t\t\"productId\": 6,\n" +
                "\t\t\t\"attrName\": \"账号来源\",\n" +
                "\t\t\t\"showSort\": 21,\n" +
                "\t\t\t\"showType\": 2,\n" +
                "\t\t\t\"isRequired\": 1,\n" +
                "\t\t\t\"enumList\": [\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 382,\n" +
                "\t\t\t\t\t\"attrId\": 89,\n" +
                "\t\t\t\t\t\"enumId\": 382,\n" +
                "\t\t\t\t\t\"enumValue\": \"自己注册\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 385,\n" +
                "\t\t\t\t\t\"attrId\": 89,\n" +
                "\t\t\t\t\t\"enumId\": 385,\n" +
                "\t\t\t\t\t\"enumValue\": \"其他\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t}\n" +
                "\t\t\t]\n" +
                "\t\t},\n" +
                "\t\t{\n" +
                "\t\t\t\"id\": 129,\n" +
                "\t\t\t\"productId\": 6,\n" +
                "\t\t\t\"attrName\": \"游戏实名\",\n" +
                "\t\t\t\"showSort\": 21,\n" +
                "\t\t\t\"showType\": 2,\n" +
                "\t\t\t\"isRequired\": 1,\n" +
                "\t\t\t\"enumList\": [\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 956,\n" +
                "\t\t\t\t\t\"attrId\": 129,\n" +
                "\t\t\t\t\t\"enumId\": 956,\n" +
                "\t\t\t\t\t\"enumValue\": \"有\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 957,\n" +
                "\t\t\t\t\t\"attrId\": 129,\n" +
                "\t\t\t\t\t\"enumId\": 957,\n" +
                "\t\t\t\t\t\"enumValue\": \"无\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t}\n" +
                "\t\t\t]\n" +
                "\t\t},\n" +
                "\t\t{\n" +
                "\t\t\t\"id\": 61,\n" +
                "\t\t\t\"productId\": 6,\n" +
                "\t\t\t\"attrName\": \"主角性别\",\n" +
                "\t\t\t\"showSort\": 22,\n" +
                "\t\t\t\"showType\": 2,\n" +
                "\t\t\t\"isRequired\": 1,\n" +
                "\t\t\t\"enumList\": [\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 321,\n" +
                "\t\t\t\t\t\"attrId\": 61,\n" +
                "\t\t\t\t\t\"enumId\": 321,\n" +
                "\t\t\t\t\t\"enumValue\": \"男主\",\n" +
                "\t\t\t\t\t\"showSort\": 0,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 322,\n" +
                "\t\t\t\t\t\"attrId\": 61,\n" +
                "\t\t\t\t\t\"enumId\": 322,\n" +
                "\t\t\t\t\t\"enumValue\": \"女主\",\n" +
                "\t\t\t\t\t\"showSort\": 1,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t}\n" +
                "\t\t\t]\n" +
                "\t\t},\n" +
                "\t\t{\n" +
                "\t\t\t\"id\": 66,\n" +
                "\t\t\t\"productId\": 6,\n" +
                "\t\t\t\"attrName\": \"冒险等级\",\n" +
                "\t\t\t\"showSort\": 23,\n" +
                "\t\t\t\"showType\": 1,\n" +
                "\t\t\t\"isRequired\": 1,\n" +
                "\t\t\t\"enumList\": null\n" +
                "\t\t},\n" +
                "\t\t{\n" +
                "\t\t\t\"id\": 86,\n" +
                "\t\t\t\"productId\": 6,\n" +
                "\t\t\t\"attrName\": \"绑定情况\",\n" +
                "\t\t\t\"showSort\": 30,\n" +
                "\t\t\t\"showType\": 3,\n" +
                "\t\t\t\"isRequired\": 1,\n" +
                "\t\t\t\"enumList\": [\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 366,\n" +
                "\t\t\t\t\t\"attrId\": 86,\n" +
                "\t\t\t\t\t\"enumId\": 366,\n" +
                "\t\t\t\t\t\"enumValue\": \"手机号\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 367,\n" +
                "\t\t\t\t\t\"attrId\": 86,\n" +
                "\t\t\t\t\t\"enumId\": 367,\n" +
                "\t\t\t\t\t\"enumValue\": \"邮箱\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 369,\n" +
                "\t\t\t\t\t\"attrId\": 86,\n" +
                "\t\t\t\t\t\"enumId\": 369,\n" +
                "\t\t\t\t\t\"enumValue\": \"TapTap\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 379,\n" +
                "\t\t\t\t\t\"attrId\": 86,\n" +
                "\t\t\t\t\t\"enumId\": 379,\n" +
                "\t\t\t\t\t\"enumValue\": \"PSN\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t}\n" +
                "\t\t\t]\n" +
                "\t\t},\n" +
                "\t\t{\n" +
                "\t\t\t\"id\": 87,\n" +
                "\t\t\t\"productId\": 6,\n" +
                "\t\t\t\"attrName\": \"绑定邮箱\",\n" +
                "\t\t\t\"showSort\": 40,\n" +
                "\t\t\t\"showType\": 2,\n" +
                "\t\t\t\"isRequired\": 1,\n" +
                "\t\t\t\"enumList\": [\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 386,\n" +
                "\t\t\t\t\t\"attrId\": 87,\n" +
                "\t\t\t\t\t\"enumId\": 386,\n" +
                "\t\t\t\t\t\"enumValue\": \"未绑定邮箱\",\n" +
                "\t\t\t\t\t\"showSort\": 1,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 371,\n" +
                "\t\t\t\t\t\"attrId\": 87,\n" +
                "\t\t\t\t\t\"enumId\": 371,\n" +
                "\t\t\t\t\t\"enumValue\": \"网易实名邮箱\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 372,\n" +
                "\t\t\t\t\t\"attrId\": 87,\n" +
                "\t\t\t\t\t\"enumId\": 372,\n" +
                "\t\t\t\t\t\"enumValue\": \"网易未实名邮箱\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 380,\n" +
                "\t\t\t\t\t\"attrId\": 87,\n" +
                "\t\t\t\t\t\"enumId\": 380,\n" +
                "\t\t\t\t\t\"enumValue\": \"QQ邮箱\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 381,\n" +
                "\t\t\t\t\t\"attrId\": 87,\n" +
                "\t\t\t\t\t\"enumId\": 381,\n" +
                "\t\t\t\t\t\"enumValue\": \"其他邮箱\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t}\n" +
                "\t\t\t]\n" +
                "\t\t},\n" +
                "\t\t{\n" +
                "\t\t\t\"id\": 237,\n" +
                "\t\t\t\"productId\": 6,\n" +
                "\t\t\t\"attrName\": \"邮箱处理\",\n" +
                "\t\t\t\"showSort\": 47,\n" +
                "\t\t\t\"showType\": 2,\n" +
                "\t\t\t\"isRequired\": 1,\n" +
                "\t\t\t\"enumList\": [\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 1837,\n" +
                "\t\t\t\t\t\"attrId\": 237,\n" +
                "\t\t\t\t\t\"enumId\": 1837,\n" +
                "\t\t\t\t\t\"enumValue\": \"赠送邮箱\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t},\n" +
                "\t\t\t\t{\n" +
                "\t\t\t\t\t\"id\": 1838,\n" +
                "\t\t\t\t\t\"attrId\": 237,\n" +
                "\t\t\t\t\t\"enumId\": 1838,\n" +
                "\t\t\t\t\t\"enumValue\": \"不送邮箱\",\n" +
                "\t\t\t\t\t\"showSort\": 100,\n" +
                "\t\t\t\t\t\"isHot\": 0\n" +
                "\t\t\t\t}\n" +
                "\t\t\t]\n" +
                "\t\t}\n" +
                "\t]\n" +
                "}";
        JSONObject jsonObject = JSONObject.parseObject(atr);
        return jsonObject;

    }

    public static void main(String[] args) {
        Map<String, Object> params = new HashMap<>();
//        params.put("signKey","9c14f82e4021dd3bef5941651a83d2ae");
//        params.put("merchantId","10048");
//        String cover = "10048"+"9c14f82e4021dd3bef5941651a83d2ae"+(new Date().getTime() / 100)+goodsInfoAndAttrValueDto.getId();
//        log.info("验签之前={}",cover);
//        String sign = DigestUtils.md5Hex(cover);
//        log.info("验签结束={}",sign);
//        params.put("sign", sign);
        // 穿越79  王者 3
//        params.put("productId",3);
//        String response = HttpUtils.sendPost("https://www.17369.com/api/sync/attr/79", JSONObject.toJSONString(params), "application/json");
        String response = getAttr(6);
        System.out.println(response);
    }

    static String getAttr(Integer gameId){
        Map<String, Object> params = new HashMap<>();
        String response = HttpUtils.sendPost("https://www.17369.com/api/sync/attr/"+gameId, JSONObject.toJSONString(params), "application/json");
        return response;
    }

    static String getGames(){
        Map<String, Object> params = new HashMap<>();
        String response = HttpUtils.sendPost("https://www.17369.com/api/sync/productList", JSONObject.toJSONString(params), "application/json");
        return response;
    }

    static String getServer(Integer gameId){
        Map<String, Object> params = new HashMap<>();
        String response = HttpUtils.sendPost("https://www.17369.com/api/sync/server/"+gameId, JSONObject.toJSONString(params), "application/json");
        return response;
    }

}
